<?php /*a:4:{s:113:"/www/wwwroot/dianshu/application/admin/view/default/../../../plugins/view/expressforkdn/index/public/content.html";i:1568885128;s:103:"/www/wwwroot/dianshu/application/admin/view/default/../../../plugins/view/coupon/admin/admin/index.html";i:1570967780;s:70:"/www/wwwroot/dianshu/application/admin/view/default/public/header.html";i:1568774834;s:70:"/www/wwwroot/dianshu/application/admin/view/default/public/footer.html";i:1572600796;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="<?php echo config('shopxo.default_charset', 'utf-8'); ?>" />
	<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1" />
	<title>ShopXO后台管理系统</title>
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/assets/css/amazeui.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-switch/amazeui.switch.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-chosen/amazeui.chosen.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-tagsinput/amazeui.tagsinput.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/css/common.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/admin/<?php echo htmlentities($default_theme); ?>/css/common.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/admin/<?php echo htmlentities($default_theme); ?>/css/iconfontmenu.css" />
    <?php if(!empty($plugins_css)): ?>
        <link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($plugins_css); ?>" />
    <?php endif; if(!empty($module_css)): ?>
		<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($module_css); ?>" />
	<?php endif; ?>

	<!-- css钩子 -->
    <?php if(!empty($plugins_admin_css_data) and is_array($plugins_admin_css_data)): foreach($plugins_admin_css_data as $hook): if(is_string($hook)): ?>
                <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($hook); ?>?v=<?php echo MyC('home_static_cache_version'); ?>" />
            <?php elseif(is_array($hook)): foreach($hook as $hook_css): if(is_string($hook_css)): ?>
                        <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($hook_css); ?>?v=<?php echo MyC('home_static_cache_version'); ?>" />
                    <?php endif; ?>
                <?php endforeach; ?>
            <?php endif; ?>
        <?php endforeach; ?>
    <?php endif; ?>

    <!-- 公共header内钩子 -->
	<?php if(!empty($plugins_admin_common_header_data) and is_array($plugins_admin_common_header_data)): foreach($plugins_admin_common_header_data as $hook): if(is_string($hook) or is_int($hook)): ?>
				<?php echo $hook; ?>
			<?php endif; ?>
		<?php endforeach; ?>
	<?php endif; ?>
</head>
<script type="text/javascript">
	var __attachment_host__ = '<?php echo htmlentities($attachment_host); ?>';
</script>
<body>
<!-- 公共顶部钩子 -->
<?php if(!empty($plugins_admin_view_common_top_data) and is_array($plugins_admin_view_common_top_data) and (!isset($is_header) or $is_header == 1)): foreach($plugins_admin_view_common_top_data as $hook): if(is_string($hook) or is_int($hook)): ?>
			<?php echo $hook; ?>
		<?php endif; ?>
	<?php endforeach; ?>
<?php endif; ?>

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <legend>
            <span class="fs-16">优惠劵</span>
            <a href="<?php echo MyUrl('admin/pluginsadmin/index'); ?>" class="fr fs-14 m-t-5 am-icon-mail-reply"> 返回</a>
        </legend>

        <div class="coupon-content">
            <!-- 基础配置 -->
            <div class="am-panel am-panel-secondary coupon-content-base">
                <div class="am-panel-hd">
                    <span class="am-panel-title">基础配置</span>
                    <a class="am-fr" href="<?php echo PluginsAdminUrl('coupon', 'admin', 'saveinfo'); ?>">编辑</a>
                </div>
                <div class="am-panel-bd">
                    <div class="items">
                        <label>应用导航名称</label>
                        <div>
                            <?php if(empty($data['application_name'])): ?>
                                未设置应用导航名称
                            <?php else: ?>
                                <?php echo htmlentities($data['application_name']); ?>
                            <?php endif; ?>
                        </div>
                    </div>
                    
                    <div class="items">
                        <label>允许用户重复领取</label>
                        <div>
                            <?php if(isset($data['is_repeat_receive']) and $data['is_repeat_receive'] == 1): ?>
                                是
                            <?php else: ?>
                                否
                            <?php endif; ?>
                        </div>
                    </div>
                
                    <div class="items">
                        <label>顶部大图</label>
                        <div class="banner-images">
                            <?php if(empty($data['banner_images'])): ?>
                                未设置图片
                            <?php else: ?>
                                <img src="<?php echo htmlentities($data['banner_images']); ?>" alt="大图" />
                            <?php endif; ?>
                        </div>
                    </div>
                
                    <div class="items">
                        <label>背景色</label>
                        <div class="bg-color-tag" <?php if(!empty($data['banner_bg_color'])): ?>style="background:<?php echo htmlentities($data['banner_bg_color']); ?>"<?php endif; ?>></div>
                    </div> 
                
                    <div class="items">
                        <label>链接地址</label>
                        <div>
                            <?php if(!empty($data['banner_url'])): ?>
                                <a href="<?php echo htmlentities($data['banner_url']); ?>" target="_blank"><?php echo htmlentities($data['banner_url']); ?></a>
                            <?php else: ?>
                                未设置
                            <?php endif; ?>
                        </div>
                    </div>
                
                    <div class="items">
                        <label>是否新窗口打开</label>
                        <div>
                            <?php if(isset($data['banner_is_window_open']) and $data['banner_is_window_open'] == 1): ?>
                                是
                            <?php else: ?>
                                否
                            <?php endif; ?>
                        </div>
                    </div>

                    <div class="items">
                        <label>优惠劵过期脚本</label>
                        <div>
                            <p class="am-text-warning">建议将该地址添加到linux定时任务定时请求即可（返回结果 success:0 冒号后面则是处理的数据条数）</p>
                            <a href="<?php echo PluginsHomeUrl('coupon', 'index', 'expire'); ?>" target="_blank"><?php echo PluginsHomeUrl('coupon', 'index', 'expire'); ?></a>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 优惠劵 -->
            <div class="am-panel am-panel-secondary coupon-content-module">
                <div class="am-panel-hd">
                    <span class="am-panel-title">优惠劵</span>
                </div>
                <div class="am-panel-bd">
                    <ul data-am-widget="gallery" class="am-gallery am-avg-sm-1 am-avg-md-2 am-avg-lg-2 am-gallery-default" data-am-gallery="{ pureview: true }">
                        <?php if(!empty($statistical)): foreach($statistical as $v): ?>
                                <li class="module-coupon">
                                    <div class="module-items">
                                        <p class="title"><?php echo htmlentities($v['title']); ?></p>
                                        <p class="total animation-count-to" data-to="<?php echo htmlentities($v['count']); ?>" data-speed="1500"><?php echo htmlentities($v['count']); ?></p>
                                        <div class="small">
                                            <span>昨日</span>
                                            <span class="animation-count-to" data-to="<?php echo htmlentities($v['yesterday_count']); ?>" data-speed="1500"><?php echo htmlentities($v['yesterday_count']); ?></span>
                                        </div>
                                        <div class="small">
                                            <span>今日</span>
                                            <span class="animation-count-to" data-to="<?php echo htmlentities($v['today_count']); ?>" data-speed="1500"><?php echo htmlentities($v['today_count']); ?></span>
                                        </div>
                                        <?php if(isset($v['right_count']) and isset($v['right_title'])): ?>
                                            <div class="top-right">
                                                <span><?php echo htmlentities($v['right_title']); ?></span>
                                                <span class="animation-count-to" data-to="<?php echo htmlentities($v['right_count']); ?>" data-speed="1500"><?php echo htmlentities($v['right_count']); ?></span>
                                            </div>
                                        <?php endif; ?>
                                        <a href="<?php echo htmlentities($v['url']); ?>" class="view-to">查看 <i class="am-icon-angle-double-right"></i></a>
                                    </div>
                                </li>
                            <?php endforeach; ?>
                        <?php endif; ?>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- right content end  -->
        
<!-- footer start -->
<!-- commom html -->
<textarea id="upload-editor-view" data-url="<?php echo MyUrl('admin/ueditor/index', ['path_type'=>empty($editor_path_type) ? 'common' : $editor_path_type]); ?>" style="display: none;"></textarea>

<!-- 公共底部钩子 -->
<?php if(!empty($plugins_admin_view_common_bottom_data) and is_array($plugins_admin_view_common_bottom_data) and (!isset($is_footer) or $is_footer == 1)): foreach($plugins_admin_view_common_bottom_data as $hook): if(is_string($hook) or is_int($hook)): ?>
            <?php echo $hook; ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>

</body>
</html>

<!-- 类库 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/jquery/jquery-2.1.0.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/assets/js/amazeui.min.js"></script>

<!-- echarts 图表 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/echarts/echarts.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/echarts/macarons.js"></script>

<!-- ueditor 编辑器 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/ueditor/ueditor.config.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/ueditor/ueditor.all.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/ueditor/lang/zh-cn/zh-cn.js"></script>

<!-- 颜色选择器 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/colorpicker/jquery.colorpicker.js"></script>

<!-- 元素拖拽排序插件 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>

<!-- 动画数数 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/animation-count-to/animation.count.to.js"></script>

<!-- amazeui插件 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-switch/amazeui.switch.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-chosen/amazeui.chosen.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-dialog/amazeui.dialog.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-tagsinput/amazeui.tagsinput.min.js"></script>

<!-- 日期组件 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/My97DatePicker/WdatePicker.js"></script>

<!-- 元素拖动 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/tdrag/tdrag.min.js"></script>

<!-- 隐藏编辑器初始化 -->
<script type="text/javascript">
    var upload_editor = UE.getEditor("upload-editor-view", {
        isShow: false,
        focus: false,
        enableAutoSave: false,
        autoSyncData: false,
        autoFloatEnabled:false,
        wordCount: false,
        sourceEditor: null,
        scaleEnabled:true,
        toolbars: [["insertimage", "insertvideo", "attachment"]]
    });
</script>

<!-- 项目公共 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/js/common.js"></script>

<!-- 应用插件公共js -->
<?php if(!empty($plugins_js)): ?>
    <script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($plugins_js); ?>"></script>
<?php endif; ?>

<!-- 当前控制器js -->
<?php if(!empty($module_js)): ?>
    <script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($module_js); ?>"></script>
<?php endif; ?>

<!-- js钩子 -->
<?php if(!empty($plugins_admin_js_data) and is_array($plugins_admin_js_data)): foreach($plugins_admin_js_data as $hook): if(is_string($hook)): ?>
            <script type='text/javascript' src="<?php echo htmlentities($hook); ?>"></script>
        <?php elseif(is_array($hook)): foreach($hook as $hook_js): if(is_string($hook_js)): ?>
                    <script type='text/javascript' src="<?php echo htmlentities($hook_js); ?>"></script>
                <?php endif; ?>
            <?php endforeach; ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>

<!-- 公共页面底部钩子 -->
<?php if(!empty($plugins_admin_common_page_bottom_data) and is_array($plugins_admin_common_page_bottom_data)): foreach($plugins_admin_common_page_bottom_data as $hook): if(is_string($hook) or is_int($hook)): ?>
            <?php echo $hook; ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>
<!-- footer end -->